package org.springframework.amqp.tutorials.config.topic;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

//老师
@Component
@RabbitListener(queues = "people.teacher")
public class TeacherTopicReceiver {

    @RabbitHandler
    public void receiverMsg(String msg){
        System.out.println("老师接收到消息，内容为："+msg);
    }
}